<layout name="layout" />
<div class="nav">
    <ul class="cc">
        <li class="current"><a href="{:U('User/Shop/edit')}">修改店铺信息</a></li>
    </ul>
</div>
<form action="__SELF__" method="post" id="form" enctype="multipart/form-data">
    <div class="table_list">
        <table width="100%" cellspacing="0" cellpadding="0" class="table_form">
            <tbody>
                <tr>
                    <td>店铺ID:</td>
                    <td>{$vo.shop_id}</td>
                </tr>
                <tr>
                    <td>店铺名称:</td>
                    <td><input type="text" name="shop_name" maxlength="30" value="{$vo.shop_name}" class="input" /></td>
                </tr>
                <tr>
                    <td>店铺图片:</td>
                    <td>
                        <if condition ="!empty($vo['shop_thumb'])">
                            <a href="{$vo['shop_thumb']}" target="_blank"><img width="100" alt="" src="{$vo['shop_thumb']}"></a>
                        </if>
                        <br />
                        
                        <input type="file" name="shop_thumb" maxlength="30" value="" class="input" /></td>
                </tr>
                <tr>
                    <td>所在地区:</td>
                    <td><select id="country" name="country" title="城市" class="sel_lt country" style="color: #999999;">
                        </select>
                        <select id="city" name="city" title="地区" class="sel_lt province"  style="color: #999999;">
                        </select>
                        <select id="area" name="area" title="餐种" class="sel_lt" style="color: #999999;display:none">
                        </select>
                        <span class="red">*</span></td>
                </tr>
                <tr>
                    <td>详细地址:</td>
                    <td><textarea name="shop_address" class="remark" style="width:350px">{$vo.shop_address}</textarea></td>
                </tr>
                <tr>
                    <td>口味:</td>
                    <td><input type="text" name="shop_kouwei" maxlength="30" value="{$vo.shop_kouwei}" class="input" /></td>
                </tr>
                <tr>
                    <td>描述:</td>
                    <td><input type="text" name="shop_desc" maxlength="30" value="{$vo.shop_desc}" class="input" /></td>
                </tr>
                <tr>
                    <td>价位:</td>
                    <td><input type="text" name="shop_price" maxlength="30" value="{$vo.shop_price}" class="input" /></td>
                </tr>
                <tr>
                    <td>公告:</td>
                    <td><input type="text" name="shop_notice" maxlength="30" value="{$vo.shop_notice}" class="input" /></td>
                </tr>
                <tr>
                    <td>标签:</td>
                    <td><input type="text" name="shop_tag" maxlength="30" value="{$vo.shop_tag}" class="input" /></td>
                </tr>
                <tr>
                    <td>注册时间:</td>
                    <td>{$vo.reg_dateline|date="Y-m-d H:i:s",###}</td>
                </tr>
                <tr>
                    <td>审核状态:</td>
                    <td><if condition="$vo['status'] == 0">未审核<else/>已审核</if></td>
                </tr>
                <tr>
                    <td></td>
                    <td valign="middle"><input type="submit" id="submit" name="edit_btn" class="btn" value="提 交" /></td>
                </tr>
            </tbody>
        </table>
    </div>
</form>
<script type="text/javascript">
    $(document).ready(function() {
        //初始 省、市、区
        ajax_address(0, 'country', '{$area[1]|intval}');
        ajax_address('{$area[1]|intval}', 'city', '{$area[2]|intval}');
        ajax_address('{$area[2]|intval}', 'area', '{$area[3]|intval}');
    })
</script> 
